package two.chapter_1.c1_3;

import edu.princeton.cs.algs4.StdOut;

import java.io.File;


public class Ex1_3_44 {

    public static void main(String[] args) {
        Buffer buffer=new Buffer();

        buffer.insert('a');
        buffer.insert('b');

        buffer.insert('c');
        buffer.insert('d');
        buffer.insert('e');
        buffer.insert('f');
        buffer.left(2);
        buffer.insert('g');
        buffer.right(2);
        int size=buffer.size();
        buffer.left(size-1);
        for (int i=0;i<size;i++)
            StdOut.print(buffer.delete() );
    }




}
